//
//  ViewController.m
//  AttributeValues(属性传值)
//
//  Created by 石虎 on 2017/7/24.
//  Copyright © 2017年 shihu. All rights reserved.
//

#import "ViewController.h"
#import "SHTwoViewController.h"
@interface ViewController ()
//输入的文本
@property (weak, nonatomic) IBOutlet UITextField *attributesField;
//点击传值
- (IBAction)attributesBtn:(id)sender;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}
- (IBAction)attributesBtn:(id)sender {
    
    SHTwoViewController *twoVc = [[SHTwoViewController alloc]init];
    twoVc.attributesString = self.attributesField.text;
    [self presentViewController:twoVc animated:YES completion:nil];
}
@end
